package com.nxn.dinner.web.action.menu;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.nxn.core.service.EntityManager;
import com.nxn.core.web.action.base.CRUDAction;
import com.nxn.dinner.model.Dish;
import com.nxn.dinner.service.DishService;

@Controller("dishAction")
@Scope("prototype")
public class DishAction extends CRUDAction<Dish, Long> {
	private static final long serialVersionUID = 4421010047818141599L;
	
	@Autowired
	private DishService dishService ;
	
	public EntityManager<Dish, Long> getServiceImpl() {
		return dishService;
	}

	public String loadDish() throws Exception {
		list();
		
		return LIST;
	}
	
}
